package com.tjmc.company.api.feign;

import com.tjmc.company.api.entity.CompanyCollectRecordsEntity;
import com.tjmc.company.api.entity.CompanyInfoEntity;
import com.tjmc.recruit.common.core.constant.SecurityConstants;
import com.tjmc.recruit.common.core.constant.ServiceNameConstants;
import com.tjmc.recruit.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(contextId = "companyInfoService", value = ServiceNameConstants.COMPANY_SERVICE)
public interface CompanyInfoService {
    //TODO 新增企业信息

    /**
     * 新增企业信息
     *
     * @return
     */
    @PostMapping("/companyInfo/add")
    R<CompanyInfoEntity> add(@RequestBody CompanyInfoEntity companyInfoEntity, @RequestHeader(SecurityConstants.FROM) String from);

    @GetMapping("/companyCollectRecords/collectResume/{companyId}")
    R<CompanyCollectRecordsEntity> getCollectResume(@PathVariable Long companyId, @RequestParam Long userId, @RequestHeader(SecurityConstants.FROM) String from);
}
